var model = require('../models/assist.server.model');

module.exports = {
	queryAssistAll:function(req , res , next){
		var param = req.query || req.param;
		model.queryAssistAll(param,function(result){
			res.send(result);
		});
	},
	removeAssist:function(req , res , next){
		var param = req.body;
		model.removeAssist(param,function(result){
			res.send(result);
		});
	},
	updateAssist:function(req , res,next){
		var param = req.body;
		model.updateAssist(param,function(result){
			res.send(result);
		});
	},
	addAssist:function(req,res,next){
		var param = req.body;
		model.addAssist(param , function(result){
			res.send(result);
		});
	}
};